package chaowan.Service;

import chaowan.pojo.ShopUser;

import java.util.List;

public interface ShopUserService {
    List<ShopUser> getAllUsers();
    ShopUser getUserById(Long uid);
    int save(ShopUser user);
    int update(ShopUser user);
    boolean deleteById(Long uid);

    ShopUser login(String uname, String pwd);

    int register(ShopUser user);

    ShopUser findByUsername(String uname);

}